<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions' %>

<c:import url = "inc/header.jsp" />

<h1>Seznam knihoven ci zavislosti</h1>




<c:import url = "inc/archiveListNav.jsp" />

<table style="border: 1px solid black; width: 100%; font-family: Verdana;">
<thead style="background-color: #aaaacc; color: #eeeeee; ">
    <tr>
        <td><b>Store date</b></td>
        <td><b>group id</b></td>
        <td><b>artifact id</b></td>
        <td><b>version</b></td>
        <td><b>dependent archives count</b></td>
        <td><b>class count</b></td>
        <td><b>desired action <br/>with archive</b></td>
    </tr>
</thead>
<c:forEach var="archive" items="${list.decoratedList}">
    <c:if test="${archive.id mod 2 eq 1}">
        <tr style="background-color: #eeffee;">
    </c:if>
    <c:if test="${archive.id mod 2 ne 1}">
        <tr style="background-color: #bbccbb;">
    </c:if>
        <td>${archive.storeDate}</td>
        <td>${archive.groupId}</td>
        <td>${archive.artifactId}</td>
        <td>${archive.version}</td>
        <td>
            <c:if test="${!(empty archive.dependentArchives)}">
                <a href="#">
                    ${fn:length(archive.dependentArchives)}
                </a>
            </c:if>
         </td>
        <td>
            <c:if test="${!(empty archive.containedClasses)}">
                <a href="jarinaservlet/detail/archive/${archive.id}.html">
                    ${fn:length(archive.containedClasses)}
                </a>
            </c:if>
        </td>
        <td>
            <a href="file:///${archive.filePath}">DOWNLOAD</a><br/>
            <a href="jarinaservlet/detail/archive/${archive.id}.html">DETAIL</a>
        </td>
    </tr>
</c:forEach>
</table>

<c:import url = "inc/archiveListNav.jsp" />


<c:import url="inc/footer.jsp" />